package edu.hainnu.niit.service.Impl;

import edu.hainnu.niit.dao.CarouselDao;
import edu.hainnu.niit.model.Carousel;
import edu.hainnu.niit.service.ICarouselService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * TODO
 *
 * @package_name edu.hainnu.niit.service.Impl
 * @auther GGB
 * @date 2021/12/12
 * @time 10:48
 */
@Service
public class carouselService implements ICarouselService {

    @Resource
    CarouselDao carouselDao;
    @Override
    public List<Carousel> carouselService(Integer page) {
        List<Carousel> list = carouselDao.queryCarousel(page);
        return list;
    }
}
